package com.chb.controller;

import com.chb.utils.UserInfoContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: chb
 * @create: 2022-05-24 18:31
 **/
@Slf4j
@RestController
public class HelloController {

    @Value("${server.port}")
    private String port;

    @GetMapping("/hello")
    public String he(){
        return port+",ok,"+ UserInfoContext.getUserInfo();
    }

}
